@extends('master')
@section('style')
<style>
	#content{margin-top: 80px;}
	.alert a{text-decoration: none;}
</style>
@endsection
@section('content')
<div id="content" class="container">
	<div class="col-md-8">
		@foreach($questions as $k=>$v)
		<div class="alert alert-dismissible" role="alert" style="overflow: hidden;text-overflow: ellipsis;">
			<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h4><a href="/question/{{$v->id}}.html">{{$v->title}}</a></h4>
			<!-- <span>{{$v->content}}</span></a><br> -->
			<span style="color: #999;font-size: 12px;">{{$v->user->name}} 发问于 {{$v->created_at}}</span>
		</div>
		@endforeach
		<span class="col-md-12 text-right">
			{!! $questions->render() !!}
		</span>
	</div>
</div>
@endsection